package com.tianya.portal.blog.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tianya.portal.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 博客笔记对象 blog_notebook
 * 
 * @author tianya
 * @date 2023-04-30
 */
public class BlogNoteBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 标题 */
    private String title;

    /** 内容 */
    private String content;

    /** 分类 */
    private String category;

    /** 标签 */
    private String tag;

    /** 描述 */
    private String description;

    /** 目录编号 */
    private String menuId;

    /** 作者 */
    private String author;

    /** 阅读数量 */
    private Long viewNumber;

    /** 点赞数 */
    private Long likeNumber;

    /** 删除标志 */

    private String deleteFlag;

    private String topFlag;

    private Long orderNum;

    private String topicId;

    /** 分类 */
    private String[] categorys;

    /** 标签 */
    private String[] tags;

    /** 最后查看时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastViewTime;

    /**
     * 关键字
     */
    private String keyword;
    /**
     * 是否公开
     */
    private String isPublic;
    /**
     * 密码
     */
    private String password;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setTag(String tag) 
    {
        this.tag = tag;
    }

    public String getTag() 
    {
        return tag;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setMenuId(String menuId) 
    {
        this.menuId = menuId;
    }

    public String getMenuId() 
    {
        return menuId;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setViewNumber(Long viewNumber) 
    {
        this.viewNumber = viewNumber;
    }

    public Long getViewNumber() 
    {
        return viewNumber;
    }
    public void setLikeNumber(Long likeNumber) 
    {
        this.likeNumber = likeNumber;
    }

    public Long getLikeNumber() 
    {
        return likeNumber;
    }
    public void setDeleteFlag(String deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public String getDeleteFlag() 
    {
        return deleteFlag;
    }

    public String getTopFlag() {
        return topFlag;
    }

    public void setTopFlag(String topFlag) {
        this.topFlag = topFlag;
    }

    public Long getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Long order_num) {
        this.orderNum = order_num;
    }

    public String getTopicId() {
        return topicId;
    }

    public void setTopicId(String topicId) {
        this.topicId = topicId;
    }

    public String[] getCategorys() {
        return categorys;
    }

    public void setCategorys(String[] categorys) {
        this.categorys = categorys;
    }

    public String[] getTags() {
        return tags;
    }

    public void setTags(String[] tags) {
        this.tags = tags;
    }

    public Date getLastViewTime() {
        return lastViewTime;
    }

    public void setLastViewTime(Date lastViewTime) {
        this.lastViewTime = lastViewTime;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getIsPublic() {
        return isPublic;
    }

    public void setIsPublic(String isPublic) {
        this.isPublic = isPublic;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("category", getCategory())
            .append("tag", getTag())
            .append("description", getDescription())
            .append("menuId", getMenuId())
            .append("author", getAuthor())
            .append("viewNumber", getViewNumber())
            .append("likeNumber", getLikeNumber())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteFlag", getDeleteFlag())
            .toString();
    }
}
